/**
 * Copyright (c) 2016-2019 九点科技 All rights reserved.
 *
 * http://www.9dyun.cn
 *
 * 版权所有，侵权必究！
 */
package com.dian.modules.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dian.common.utils.PageUtils;
import com.dian.modules.base.entity.WarehouseEntity;

import java.util.Map;

/**
 * 仓库信息服务接口类
 *
 * @author Jinag Run
 * @email 1685269193qq.com
 * @date 2019-05-23 09:30:44
 */
public interface WarehouseService extends IService<WarehouseEntity> {

    /**
     * 按仓库编码查询
     * @param warehouseCode
     * @return
     */
    WarehouseEntity queryByCode(String warehouseCode);
    /**
    * 仓库信息分页
    * @param params
    * @return
    */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 仓库信息新增
     * @param baseWarehouse
     * @return
     */
    boolean saveInfo(WarehouseEntity baseWarehouse);

    /**
     * 仓库信息更新
     * @param baseWarehouse
     * @return
     */
    boolean updateInfo(WarehouseEntity baseWarehouse);

    /**
    * 仓库信息批量删除
    * @param idList
    * @return
    */
    boolean deleteInfo(Long[]  idList);
}

